import http from '@/api'
import { COMMON_ADMIN_API } from '@/api/axios/servicePort'

export const ProductApi = {
  // 分页查询商品列表
  page: (params: any) => http.post(COMMON_ADMIN_API + '/product/page', params),
  saveOrEdit: (params: any) => http.post(COMMON_ADMIN_API + '/product/saveOrEdit', params),
  remove: (params: any) => http.post(COMMON_ADMIN_API + '/product/remove', params),
  up: (params: any) => http.post(COMMON_ADMIN_API + '/product/up', params),
  down: (params: any) => http.post(COMMON_ADMIN_API + '/product/down', params)
}
